<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新年烟花效果</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #000;
            overflow: hidden;
        }

        .firework {
            position: absolute;
            width: 2px;
            height: 2px;
            background-color: #fff;
            border-radius: 50%;
            opacity: 0;
            animation: explode 1s ease-out forwards;
        }

        @keyframes explode {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            100% {
                transform: scale(3);
                opacity: 0;
            }
        }
    </style>
</head>
<body>
<div class="firework" style="left: 50%; top: 50%;"></div>
<div class="firework" style="left: 70%; top: 30%;"></div>
<div class="firework" style="left: 30%; top: 70%;"></div>
<div class="firework" style="left: 90%; top: 10%;"></div>
<div class="firework" style="left: 10%; top: 90%;"></div>

<h1 style="position: absolute; left: 50%; top: 40%; color: #fff; text-align: center;">你好，{name}</h1>
<h2 style="position: absolute; left: 50%; top: 50%; color: #fff; text-align: center;">2024，新年快乐</h2>
<p style="position: absolute; left: 50%; top: 60%; color: #fff; text-align: center;">祝愿在新的一年心想事成，万事胜意！</p>
</body>
</html>
